package com.azzcs.myrpc.register;

import com.azzcs.myrpc.client.RpcClient;

import java.util.List;

/**
 * @Author: wzg
 * @Date: 2021/1/29 下午4:00
 */
public interface ServerRegister {
    // 注册服务
    void register(String serverName,String address);
    // 获取所有服务
    List<String> getServerAddress(String serverName);
    // 上报时间
    void reportTime(String serverName, String address, long useTime);
    // 负载均衡
    String loadBalance(String serverName);

    void registerListener(RpcClient rpcClient, String serverName);

    void scheduleReport(String serverName);

    void remove(String serviceName, String address);
}
